import { post } from '@/utils/fetch';

export const getRoleList = (data) => post('/usercenter-admin-app/admin/sysRole/selectPage', data);
export const getRoleDtail = data => post('/usercenter-admin-app/admin/sysRole/detail', data);
export const getOrgRoleDtail = data => post('/usercenter-admin-app/admin/sysRole/detailOrgRole', data);
// export const getUserList = data => post('/usercenter-admin-app/admin/sysUser/selectPage', data);
export const getUserList = data => post('/usercenter-admin-app/admin/sysUser/selectPageByApp', data);
export const getChildOrgListByParentId = data => post('/usercenter-admin-app/admin/sysOrg/getChildOrgListByParentId', data);


export const addRole = (data) => post('/usercenter-admin-app/admin/sysRole/insert', data);
export const updateRole = (data) => post('/usercenter-admin-app/admin/sysRole/update', data);
export const deleteRole = (data) => post('/usercenter-admin-app/admin/sysRole/delete', data);
export const getMenuTreeData = (data) =>
  post('/usercenter-admin-app/admin/sysResource/menu/selectList', data);
export const getRoleUserList = (data) =>
  post('/usercenter-admin-app/admin/sysUserRole/selectPage', data);
